package http;

import java.util.Map;

import Bean.CarBean;
import Bean.LoginBean;
import Bean.RegistBean;
import Bean.ShopDataBean;
import Bean.XiangBean;
import io.reactivex.Flowable;
import retrofit2.http.GET;
import retrofit2.http.QueryMap;

/**
 * Created by ZhangTAO on 2017/12/21.
 */

public interface ApiService {
    @GET("user/reg")
    Flowable<RegistBean> getRegist(@QueryMap Map<String,String> map);
    @GET("user/login")
    Flowable<LoginBean> getLogin(@QueryMap Map<String,String> map);
//    https://www.zhaoapi.cn/product/getProducts?pscid=39&page=1
    @GET("product/getProducts")
    Flowable<ShopDataBean> getShopdata(@QueryMap Map<String,String> map);
//    https://www.zhaoapi.cn/product/getProductDetail
    @GET("product/getProductDetail")
    Flowable<XiangBean> getXiang(@QueryMap Map<String,String> map);
//    http://120.27.23.105/product/getCarts
    @GET("product/getCarts")
    Flowable<CarBean> getCars(@QueryMap Map<String,String> map);
}
